function ColorSelector () {

}

ColorSelector.prototype = new Tools();

ColorSelector.prototype.bindEvent = function () {
    var self = this;
    for (var i = 0; i < this.items.length; i++) {
        var item = this.items[i];
        item.addEventListener('click', function (evt) {
            var color = this.getAttributeNode('data-color').value;
            if ('function' == typeof self.onItemClick) {
                self.onItemClick(color);
            }
            self.hide();
        });
    }
};
